package exception.exception01;

public class ThrowDemo {
    public static void main(String[] args) {
        Student zs = new Student();
        try{
            zs.setAge(101);
            System.out.println("年龄是"+zs.getAge());
        }catch (Exception e){
            System.out.println("输入年龄有误");
        }






















































    }
}
